package com.example.a_java.model.dto.report;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * 业务报表查询参数DTO
 */
@Data
@Schema(description = "业务报表查询参数DTO")
public class BusinessQueryDTO {

    @Schema(description = "开始日期，格式：YYYY-MM-DD")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate startDate;
    
    @Schema(description = "结束日期，格式：YYYY-MM-DD")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate endDate;
    
    @Schema(description = "统计周期，可选值：day(日)、month(月)、quarter(季)、year(年)，默认month")
    private String period = "month";
    
    @Schema(description = "业务类型，如apply(申请)、approval(审批)、disburse(发放)、collect(回收)")
    private String businessType;
    
    @Schema(description = "当前页码")
    private Integer currentPage = 1;
    
    @Schema(description = "每页记录数")
    private Integer pageSize = 10;
    
    @Schema(description = "导出类型，summary(汇总)、detail(明细)，默认summary")
    private String exportType = "summary";
} 
